package com.example.foobar.entity;

import io.geekidea.springbootplus.framework.common.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import io.geekidea.springbootplus.framework.core.validator.groups.Update;

/**
 * 
 *
 * @author 郑英奔
 * @since 2021-07-15
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "ImsGhostQrcodeRecords对象")
public class ImsGhostQrcodeRecords extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @NotNull(message = "id不能为空", groups = {Update.class})
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @NotNull(message = "公众号ID不能为空")
    @ApiModelProperty("公众号ID")
    private Integer uniacid;

    @NotBlank(message = "场景ID不能为空")
    @ApiModelProperty("场景ID")
    private String sceneId;

    @NotBlank(message = "事件类型不能为空")
    @ApiModelProperty("事件类型")
    private String event;

    @NotBlank(message = "粉丝OPENID不能为空")
    @ApiModelProperty("粉丝OPENID")
    private String openid;

    @NotNull(message = "创建时间不能为空")
    @ApiModelProperty("创建时间")
    private Date createTime;

}
